package cn.lyvust.args;

/**
 * Description:
 * date: 2021-3-31 21:24
 *
 * @author Guo_guo
 * @since JDK 1.8
 */
public class Calc {
    public void calc1(int num) {
        num = num + 1;
    }
    public void calc2(Student stu) {
        stu.age = stu.age + 1;
    }
    public void cal3(int a[]) {
        System.out.println("在cal3内部,数组修改之前:" + a[0]);
        a[0] = a[0] + 100;
        System.out.println("在cal3内部,数组修改之后:" + a[0]);
    }
    public String calc4(String param) {
        String str = param;
        str = "calc内部的字符串";
        return str;
    }
}
